package com.erp.erp_servers.ProductFjGe.imp;

import com.erp.erp_dao.ProductFjGe.IProductFjGeDAO;
import com.erp.erp_entitys.ProductFjGe.ProductFjGeEntity;
import com.erp.erp_entitys.ProductFjGe.ProductFjGeExample;
import com.erp.erp_servers.ProductFjGe.IProductFjGeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpProductFjGeService implements IProductFjGeService {
    @Autowired
    IProductFjGeDAO productFjGeDAO;
    @Override
    public long countByExample(ProductFjGeExample example) {
        return productFjGeDAO.countByExample(example);
    }

    @Override
    public int deleteByExample(ProductFjGeExample example) {
        return productFjGeDAO.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return productFjGeDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ProductFjGeEntity record) {
        return productFjGeDAO.insert(record);
    }

    @Override
    public int insertSelective(ProductFjGeEntity record) {
        return productFjGeDAO.insertSelective(record);
    }

    @Override
    public List<ProductFjGeEntity> selectByExample(ProductFjGeExample example) {
        return productFjGeDAO.selectByExample(example);
    }

    @Override
    public ProductFjGeEntity selectByPrimaryKey(Integer id) {
        return productFjGeDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(ProductFjGeEntity record, ProductFjGeExample example) {
        return productFjGeDAO.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(ProductFjGeEntity record, ProductFjGeExample example) {
        return productFjGeDAO.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductFjGeEntity record) {
        return productFjGeDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProductFjGeEntity record) {
        return productFjGeDAO.updateByPrimaryKey(record);
    }

    @Override
    public int updateFjGeZhuGe(String oldZhuGe,String newZhuGe, String productCode) {
        return productFjGeDAO.updateFjGeZhuGe(oldZhuGe,newZhuGe,productCode);
    }
}
